From: Florian Müllner Date: Mon, 27 Jan 2020 00:13:49 +0000 (+0100) Subject: extensionDownloader: Exclude extensions with pending updates from check X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~98 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b7e828fa3cd89a25911545bf310c052dbbacc836;p=gnome-shell.git extensionDownloader: Exclude extensions with pending updates from check While it is possible that an extension has a newer version available than the previously downloaded update, it's more likely that we end up downloading the same archive again. That would be a bit silly despite the usually small size, so we can either use the metadata from the update, or exclude the extension from the check. The latter is much easier, so let's go with that for now. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945 --- diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index 25145564d..c09359eab 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -123,6 +123,8 @@ function checkForUpdates() { let extension = Main.extensionManager.lookup(uuid); if (extension.type !== ExtensionUtils.ExtensionType.PER_USER) return; + if (extension.hasUpdate) + return; metadatas[uuid] = extension.metadata; });